package
{
	import flash.display.*;
	import flash.events.TextEvent;	
	import com.frontalcode.*;
	import flash.utils.*;
	import fl.transitions.easing.*;
	import fl.motion.easing.*;
	import flash.net.URLRequest;
	import flash.net.URLVariables;
	import flash.net.navigateToURL;
	import com.pixelbreaker.ui.osx.MacMouseWheel;	
	import flash.external.ExternalInterface; 
	
	public class FrontalRenderer extends MovieClip
	{
		public function FrontalRenderer ( )
		{
			super ( );
			
			MacMouseWheel.setup ( stage );			
			
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			
			var docMgr : DocumentManager = new DocumentManager ( this );
			
			if ( docMgr.getLoaderParameter ( "docInJavaScriptVar" ) != null )
			{
				var doc : Document = docMgr.addDocument ( );
				doc.write ( ExternalInterface.call ( "eval", docMgr.getLoaderParameter ( "docInJavaScriptVar" ) ) );
			}
			else if ( docMgr.getLoaderParameter ( "siteDefn" ) != null )
			{
				doc = docMgr.addDocument ( );
				doc.write ( unescape ( docMgr.getLoaderParameter ( "siteDefn" ) ) );
			}
			else if ( docMgr.getLoaderParameter ( "siteDefnURL" ) != null )
			{
				doc = docMgr.addDocument ( );
				doc.load ( docMgr.getLoaderParameter ( "siteDefnURL" ) );
			}
			else
			{
				docMgr.addDefaultDocument ( );
			}
			
			var tmp : Class;
			tmp = DocumentComplete;
			
			tmp = URLRequest;
			tmp = URLVariables;
			
			tmp = fl.transitions.easing.Back;
			tmp = fl.motion.easing.Bounce;
			tmp = Circular;
			tmp = Cubic;
			tmp = fl.transitions.easing.Elastic;
			tmp = Exponential;
			tmp = Linear;
			tmp = Quadratic;
			tmp = Quartic;
			tmp = Quintic;
			tmp = Sine;
			
			tmp = None;
			tmp = Regular;
			tmp = Strong;
		}
	}
}

